WP_Defender\Controller\Recaptcha D

Total Complexity 150
Dependencies 10
Dependents 3
Total lines 1,009
Lines of code 649
Logical lines of code 302
Comment lines 251
Methods 35
Properties 11

Methods 35

Method Rating Maintainability Complexity Lines of code
add_actions()
B
37 20 69
data_frontend()
B
39 15 63
load_recaptcha_preview()
A
34 8 115
display_recaptcha()
A
44 11 46
validate_captcha_field_on_wpmu_registration()
S
56 7 17
validate_captcha_field_on_login()
S
56 6 20
declare_variables()
S
54 6 20
add_scripts_for_lazy_load()
S
59 6 14
get_api_url()
S
61 5 12
is_woocommerce_page()
S
61 5 12
display_login_recaptcha()
S
51 3 40
__construct()
S
55 4 19
validate_captcha_field_on_woo_registration()
S
62 5 10
maybe_validate_captcha_for_lostpassword()
S
70 5 5
add_scripts()
S
50 3 29
recaptcha_response()
S
58 3 15
save_settings()
S
53 2 27
dashboard_widget()
S
62 3 12
validate_captcha_field_on_buddypress_group()
S
62 3 11
validate_captcha_field_on_woo_login()
S
63 3 10
validate_captcha_field_on_registration()
S
64 3 10
validate_captcha_field_on_comment()
S
67 3 8
export_strings()
S
77 2 3
import_data()
S
69 2 7
script_loader_tag()
S
70 2 6
validate_captcha_field_on_woo_checkout()
S
67 2 7
display_signup_recaptcha()
S
68 2 7
validate_captcha_field_on_buddypress_registration()
S
72 2 5
display_buddypress_recaptcha()
S
65 2 9
validate_captcha_field_on_lostpassword()
S
73 2 5
remove_settings()
S
98 1 1
remove_data()
S
82 1 3
to_array()
S
82 1 3
display_comment_recaptcha()
S
74 1 5
script_data()
S
76 1 4